package com.yjzx.util;

import java.util.Collection;

/**
 * @author yjzx
 * @date 2024/4/20
 * @description
 */
public class CollectionUtil {

    public static boolean isEmpty(Collection<?> collection) {

        return collection==null||collection.size()==0;
    }
    public static boolean isNotEmpty(Collection<?> collection) {

        return !isEmpty(collection);
    }
}
